﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyChucVu.aspx.cs" Inherits="LotteCinema.Admin.QuanLyChucVu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server" >
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css" >
        .style27
        {
            margin-left: 279px;
        }
        .style28
        {
            margin-left: 147px;
        }
        .style29
        {
            font-size: x-large;
        }
        .style31
        {
            width: 223px;
            text-align: right;
        }
        .style32
        {
            margin-left: 79px;
        }
        .style33
        {
            margin-left: 81px;
        }
        .style34
        {
            width: 540px;
        }
        .style35
        {
            width: 588px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Panel runat="server">
    <div class="title" style="font-size:14pt;">QUẢN LÝ CHỨC VỤ</div>
    <table style="width:100%; margin-left:270px;">     
        <tr>
            <td class="style26" colspan="3" align="center">
                <asp:Label ID="lblthongbao" runat="server" CssClass="style29" ForeColor="Red"></asp:Label>
            </td>
            <td style="width:300px;"></td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%; margin-left:250px;">
        <tr>
            <td class="style31">
                <asp:Label ID="Label2" runat="server" Text="Mã Chức Vụ:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DDLMaCV" runat="server" CssClass="style33" Height="16px" 
                    onselectedindexchanged="DDLMaCV_SelectedIndexChanged" Width="188px" 
                    AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style31">
                <asp:Label ID="Label3" runat="server" Text="Tên Chức Vụ:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTenCV" runat="server" CssClass="style32" Width="179px" 
                    Font-Names="Sylfaen"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style31">
                <asp:Label ID="Label4" runat="server" Text="Quyền:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtQuyen" runat="server" CssClass="style33" Width="181px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style31">
                
            </td>
           
            <td>
             &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:Button ID="btTimKiem" runat="server"  onclick="btTimKiem_Click"  
                    Text="tim kiem" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;margin-left:-60px;" >
        <tr>
        <td>&nbsp;</td>
            <td class="style35">      
                
            </td>
     
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td align="left">
                <asp:GridView ID="grChucVu" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CssClass="style27" charset=utf-8
                    DataKeyNames="MACV" 
                    onselectedindexchanged="grChucVu_SelectedIndexChanged" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    Font-Names="Tahoma" onpageindexchanging="grChucVu_PageIndexChanging" >
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="MACV" HeaderText="MACV" ReadOnly="True" 
                            SortExpression="MACV" />
                        <asp:BoundField DataField="TENCV" HeaderText="TENCV" SortExpression="TENCV" 
                            HtmlEncode="False" />
                        <asp:BoundField DataField="QUYEN" HeaderText="QUYEN" SortExpression="QUYEN" 
                            HtmlEncode="False" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [CHUCVU]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style35">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr align="left">
            <td></td>
            <td class="style35">
            <asp:ImageButton  ID="imThem" runat="server" CssClass="style28" Height="52px" 
                    ImageUrl="~/Images/THEM.png" onclick="imThem_Click" Width="110px" />
                    &nbsp &nbsp &nbsp &nbsp
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" onclick="imXoa_Click" Width="110px" />
                     &nbsp &nbsp &nbsp &nbsp
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" onclick="imSua_Click" Width="110px" />
            </td>
            <td>
                
            </td>
            
        </tr>
    </table>
</asp:Panel>
</asp:Content>
